Pod::Spec.new do |s|
  s.name             = 'STKitSwift'
  s.version          = '1.3'
  s.summary          = '快速开发'
  s.description      = '一些有用的类加快app开发，非常全面，是UIKit、Foundation的扩展'

  s.homepage         = 'https://github.com/STShenZhaoliang'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'shentian' => '409178030@qq.com' }

  s.source           = { :git => 'https://github.com/STShenZhaoliang/STKitSwift.git', :tag => s.version.to_s }

  s.swift_version         = '5'
  s.ios.deployment_target = '10.0'
  
  s.ios.dependency 'SnapKit'
  s.requires_arc = true

  s.default_subspec = 'STKit'
  
  s.subspec 'STKit' do |ss|
    ss.source_files = 'STKitSwift/*.swift'
    ss.resource_bundles = {
      'STKitSwift_bundles' => ['STKitSwift/*.xcassets']
    }
    ss.ios.dependency 'TZImagePickerController'
  end
  
  s.subspec 'STAlertView' do |ss|
    ss.source_files = 'STKitSwift/STAlertView.swift', 'STKitSwift/UIViewController+STKit.swift', 'STKitSwift/UIDevice+STKit.swift'
  end
  
  s.subspec 'STGradientButton' do |ss|
    ss.source_files = 'STKitSwift/STGradientButton.swift'
  end
  
  s.subspec 'STGradientView' do |ss|
    ss.source_files = 'STKitSwift/STGradientView.swift'
  end
  
  s.subspec 'STHUD' do |ss|
    ss.source_files = 'STKitSwift/STHUD.swift'
  end
  
  s.subspec 'STMoveButton' do |ss|
    ss.source_files = 'STKitSwift/STMoveButton.swift'
  end
  
  s.subspec 'STPhoneTextField' do |ss|
    ss.source_files = 'STKitSwift/STPhoneTextField.swift'
  end
  
  s.subspec 'STProgressView' do |ss|
    ss.source_files = 'STKitSwift/STProgressView.swift'
  end
  
  s.subspec 'STSegmentedControl' do |ss|
    ss.source_files = 'STKitSwift/STSegmentedControl.swift', 'STKitSwift/UIView+STKit.swift'
  end
  
  s.subspec 'STTimerButton' do |ss|
      ss.source_files = 'STKitSwift/STTimerButton.swift'
  end
  
  s.subspec 'STAreaPickerView' do |ss|
      ss.source_files = 'STKitSwift/STAreaPickerView', 'STKitSwift/STKitAssets.swift'
      ss.resource_bundles = {
          'STKitSwift_bundles' => ['STKitSwift/*.xcassets']
      }
  end
  
  s.subspec 'STDatePickerView' do |ss|
      ss.source_files = 'STKitSwift/STDatePickerView.swift', 'STKitSwift/Date+STKit.swift'
  end
  
  s.subspec 'STImagePicker' do |ss|
      ss.source_files = 'STKitSwift/STImagePicker.swift'
      ss.ios.dependency 'STKitSwift/STAlertView'
  end

end

